package com.dsj.gxrd.modules.book.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dsj.gxrd.common.MySelfEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;

import java.util.List;

/**
 * 【请填写功能名称】对象 rd_book_category
 * 
 * @author ruoyi
 * @date 2023-09-11
 */
@Data
@ApiModel(description = "图书分类")
@TableName("rd_book_category")
public class RdBookCategory extends MySelfEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(type = IdType.ASSIGN_ID)
    private Long rdBookCatId;

    @ApiModelProperty("分类名")
    @Excel(name = "分类名")
    private String bookCatName;

    @ApiModelProperty("排序 值越小越靠左")
    @Excel(name = "排序 值越小越靠左")
    private Integer sort;

    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    @TableLogic
    private Integer delFlag;

    private Long parentId;

    private String isRdcw;

    @TableField(exist = false)
    private List<RdBookCategory>children;


}
